﻿<phone:PhoneApplicationPage 
    x:Class="Contact_Sync.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" d:DesignHeight="696" d:DesignWidth="480">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" >
        <Grid.Background>
            <ImageBrush ImageSource="6sxv92.jpg"></ImageBrush>
        </Grid.Background>
        <!--Pivot Control-->
        <controls:Pivot Title="Contact Sync..">
            <!--Pivot item one-->
            <controls:PivotItem Header="Options">
                
                <Grid Name="grid1">
                    

                    <TextBlock Text="Service"  Style="{StaticResource PhoneTextExtraLargeStyle}" Height="77" Width="167" Margin="50,75,239,383" />
                    <CheckBox   Content="Privacy Control"  Height="72" HorizontalAlignment="Left" Margin="115,199,0,0" Name="checkBox1" VerticalAlignment="Top"  />
                    <Button Content="Open Contacts" Height="81" HorizontalAlignment="Left" Margin="60,312,0,0" Name="button1" VerticalAlignment="Top" Width="341" Click="button1_Click" />
                    <Slider Height="85" HorizontalAlignment="Left" Margin="286,81,0,0" Name="slider1" VerticalAlignment="Top" Width="80" Maximum="1"  LargeChange="1" Value="1" />
                </Grid>


				
            </controls:PivotItem>
 
            <!--Pivot item two-->
            <controls:PivotItem Header="Search"> 
                <!--Triple line list no text wrapping-->
                <Grid Name="grid2">
                    <ListBox x:Name="SecondListBox" Margin="-1,64,-12,0" Height="542" Width="469">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Margin="0,0,0,17">
                                    <TextBlock  Text="{Binding Path=Name}" TextWrapping="NoWrap" Margin="12,0,0,0" Style="{StaticResource PhoneTextExtraLargeStyle}" Tap="TextBlock_Tap"  />
                                    <TextBlock Text="{Binding Path=Phno}" TextWrapping="NoWrap" Margin="12,-6,0,0" Style="{StaticResource PhoneTextSubtleStyle}"/>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>


                    <TextBox Height="72" HorizontalAlignment="Left" Margin="-2,-5,0,0" Name="textBox1" Text="Search" VerticalAlignment="Top" Width="460" GotFocus="textBox1_GotFocus" LostFocus="textBox1_LostFocus" KeyUp="textBox1_KeyUp" Foreground="Gray"/>

                
                </Grid>
                    
            </controls:PivotItem>
        </controls:Pivot>
        
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>